<!-- eslint-disable vue/multi-word-component-names -->
<template>
  <ViewTable :tables="tables" />
</template>

<script setup lang="ts">
import { useTableStore } from '@/stores/table'
const store = useTableStore()
const route = useRoute()
// table数据
const tables = computed(() => {
  return store.currentTables
})
onMounted(() => {
  const id: string = route.query.id as string
  if (id) {
    store.changeTable(id)
  }
})
</script>

<style scoped></style>
